body {
  background-color: #f5f5f5;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei",
    "微软雅黑", Arial, sans-serif;
}
header {
  background-color: #00b38a;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.content {
  display: flex;
  position: relative;
  margin: 20px 0;
  .show_main {
    position: absolute;
    right: 32px;
    margin-left: 24px;
    color: #2f7cff;
    line-height: 26px;
    font-size: 14px;
    &::before {
      content: "\e967";
      padding: 1px;
      margin-right: 2px;
      font-family: "icomoon";
    }
  }

  // 我的信息
  .my_info {
    float: left;
    flex: 1;
    .aboutMe,
    .skills,
    .others {
      margin-bottom: 24px;
      box-shadow: 0 2px 12px 2px rgba(68, 73, 77, 0.16);
      background-color: #fff;
    }
    .aboutMe {
      height: 180px;
      display: flex;
      align-items: center;
      .faces {
        width: 120px;
        height: 120px;
        margin-left: 18px;
        border-radius: 50%;
        cursor: pointer;
      }
      .nickname {
        height: 85px;
        padding-left: 20px;
        h3,
        h4 {
          margin-top: 5px;
        }
      }
      .link {
        margin-top: 10px;
        li {
          float: left;
          margin: 0 4px;
          padding: 2px;
          .icon {
            cursor: pointer;
          }
          path {
            transition: 0.15s;
          }
          &:hover path {
            fill: #00b38a;
          }
        }
      }
    }
    .skills {
      height: 120px;
      padding: 12px 16px;
      h3 {
        padding-bottom: 4px;
        border-bottom: 1px solid #999;
        font-size: 18px;
        font-weight: 400;
      }
      li {
        float: left;
        height: 24px;
        padding: 0 8px;
        border: 1px solid #ddd;
        margin-right: 5px;
        margin-top: 8px;
        border-radius: 12px;

        font-size: 14px;
        color: #2f7cff;
        line-height: 22px;
        cursor: pointer;
        transition: 0.18s;
      }
      li:hover {
        color: #fff;
        border-color: #fff;
        background-color: #2f7cff;
      }
    }
    .others {
      padding: 18px;
      margin-bottom: 0;
      p {
        text-indent: 2em;
        margin-bottom: 12px;
      }
      h3 {
        margin-bottom: 10px;
        font-weight: 400;
      }
      li::before {
        content: "· ";
      }
      li {
        height: 32px;
        width: 256px;
        padding-left: 12px;
        border-bottom: 1px solid #999;
        margin-bottom: 1px;

        line-height: 32px;
        font-size: 16px;
        color: #666;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;

        cursor: pointer;
        transition: 0.18s;
        &:hover {
          color: #000;
          background-color: #eee;
        }
      }
    }
  }

  .artical_list,
  .col_artical_list {
    min-width: 500px;
  }
  // 文章列表
  .artical_list {
    // display: none;
    flex: 3;
    margin-left: 40px;
    box-shadow: 0 2px 12px 2px rgba(68, 73, 77, 0.16);
    background-color: #fff;
    li {
      max-height: 200px;
      padding: 16px 28px;
      margin-top: -1px;
      border-bottom: 1px solid #ddd;
      h3 {
        font-size: 24px;
        font-weight: 400;
        cursor: pointer;
      }
      .article_content {
        max-height: 84px;
        margin-top: 12px;
        color: #666;
        // 多行文本省略号
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
      }
      .author_info {
        height: 32px;
        margin-top: 12px;
        .author_face {
          width: 32px;
          height: 32px;
          vertical-align: top;
          border-radius: 50%;
          cursor: pointer;
        }
        span {
          padding-right: 14px;
          margin-left: 6px;
          border-right: 1px solid #aaa;
          color: #aaa;
        }
        .author_name {
          padding-left: 6px;
          line-height: 34px;
        }
        .article_class {
          border: none;
        }
      }
    }
    .page_control {
      display: flex;
      justify-content: center;
      height: 50px;
      margin: 0 auto;
      padding: 8px;
      padding-left: 12px;
      .num_every_page {
        width: 72px;
        height: 32px;
        padding-left: 7px;
        padding-right: 6px;
        margin-right: 12px;
        border: 1px solid #ccc;
        font-size: 16px;
      }
      .previous_page_btn::after,
      .next_page_btn::after {
        position: relative;
        top: 4px;
        content: "\e919";
        padding: 3px;
        cursor: pointer;
        font-size: 24px;
        transition: 0.15s;
        font-family: "icomoon";
      }
      .next_page_btn::after {
        content: "\e91a";
      }
      .previous_page_btn:hover,
      .next_page_btn:hover {
        color: #00b38a;
      }
      .page_input {
        margin-left: 15px;
        font-size: 18px;
        input {
          width: 44px;
          height: 32px;
          font-size: 18px;
          border: 1px solid #ccc;
          text-align: center;
        }
        .page_confirm_btn {
          width: 60px;
          height: 30px;
          margin-left: 12px;
          border: 1px solid #000;
          border-radius: 2px;
          transition: 0.15s;
          &:hover {
            border: 1px solid #00b38a;
            color: #00b38a;
          }
        }
      }
    }
  }

  // 文章详情页
  article {
    display: none;
    flex: 3;
    margin-left: 40px;
    box-shadow: 0 2px 12px 2px rgba(68, 73, 77, 0.16);
    background-color: #fff;
    padding: 12px 24px;
    .title {
      font-size: 28px;
      font-weight: 600;
    }
    section {
      height: 30px;
      margin-top: 12px;
      span {
        float: left;
        margin-right: 24px;
        line-height: 24px;
      }
      .create_time {
        color: #aaa;
      }
    }
    p {
      margin-top: 16px;
      line-height: 26px;
      text-indent: 2em;
    }
  }

  // 分类文章列表
  .col_artical_list {
    display: none;
    flex: 3;
    margin-left: 40px;
    box-shadow: 0 2px 12px 2px rgba(68, 73, 77, 0.16);
    background-color: #fff;
    nav {
      position: relative;
      height: 36px;
      margin-top: 12px;
      padding-left: 16px;
      border-bottom: 1px solid #aaa;
      h3 {
        float: left;
      }
      em {
        position: relative;
        top: 1px;
        margin-left: 16px;
      }
    }

    li {
      max-height: 200px;
      padding: 16px 28px;
      margin-top: -1px;
      border-bottom: 1px solid #ddd;
      h3 {
        font-size: 24px;
        font-weight: 400;
        cursor: pointer;
      }
      .article_content {
        max-height: 84px;
        margin-top: 8px;
        // 多行文本省略号
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
      }
      .author_info {
        height: 32px;
        margin-top: 12px;
        .author_face {
          width: 32px;
          height: 32px;
          vertical-align: top;
          border-radius: 50%;
          cursor: pointer;
        }
        span {
          padding-right: 14px;
          margin-left: 6px;
          border-right: 1px solid #aaa;
          color: #aaa;
        }
        .author_name {
          padding-left: 6px;
          line-height: 34px;
        }
        .article_class {
          border: none;
        }
      }
    }
  }
}
footer {
  height: 180px;
  background-color: #fff;
  .copyright,
  .registration {
    width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 6px;
    // background-color: pink;
  }
}
